﻿using Cookbook.Services.Core.Domain;
using Cookbook.Services.Core.Persistency.Common;

namespace Cookbook.Services.Core.Persistency
{
    public sealed class CookbookUnitOfWork : UnitOfWork
    {
        public CookbookUnitOfWork(IDataMapper mapper) : base(mapper)
        {

        }

        public Repository<Recipe> Recipes
        {
            get { return Mapper.GetRepository<Recipe>(); }
        }

        public Repository<Product> Products
        {
            get { return Mapper.GetRepository<Product>(); }
        }
    }
}